package com.yvon.maple.service.system.vo;

import com.yvon.boot.common.validation.group.CreateGroup;
import com.yvon.maple.pojo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author : yvon
 * @time : 2020-8-3
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("角色请求参数")
public class RoleVO extends BaseVO implements Serializable {

    /**
     * 角色标识
     */
    @ApiModelProperty(value = "角色标识", required = true)
    @NotNull(groups = CreateGroup.class, message = "角色标识不能为空")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;


    /**
     * 启用状态：0->禁用；1->启用
     */
    @ApiModelProperty(value = "启用状态")
    private Integer status;

    /**
     * 权限
     */
    @ApiModelProperty(value = "权限")
    private List<Long> permissionIds;

}
